import request from '@/utils/request'

// 查询用户定位列表
export function listPos(query) {
  return request({
    url: '/event/pos/list',
    method: 'get',
    params: query
  })
}

export function listPosAll(query) {
  return request({
    url: '/event/pos/listAll',
    method: 'get',
    params: query
  })
}

// 查询用户定位详细
export function getPos(id) {
  return request({
    url: '/event/pos/' + id,
    method: 'get'
  })
}

// 新增用户定位
export function addPos(data) {
  return request({
    url: '/event/pos',
    method: 'post',
    data: data
  })
}

// 修改用户定位
export function updatePos(data) {
  return request({
    url: '/event/pos',
    method: 'put',
    data: data
  })
}

// 删除用户定位
export function delPos(id) {
  return request({
    url: '/event/pos/' + id,
    method: 'delete'
  })
}
